<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewIncidenteTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewIncidenteLabel_idIncidente}"/>
                    <h:outputText value="#{incidenteController.selected.idIncidente}" title="#{bundle.ViewIncidenteTitle_idIncidente}"/>
                    <h:outputText value="#{bundle.ViewIncidenteLabel_nombreRegistrante}"/>
                    <h:outputText value="#{incidenteController.selected.nombreRegistrante}" title="#{bundle.ViewIncidenteTitle_nombreRegistrante}"/>
                    <h:outputText value="#{bundle.ViewIncidenteLabel_descripcion}"/>
                    <h:outputText value="#{incidenteController.selected.descripcion}" title="#{bundle.ViewIncidenteTitle_descripcion}"/>
                    <h:outputText value="#{bundle.ViewIncidenteLabel_hora}"/>
                    <h:outputText value="#{incidenteController.selected.hora}" title="#{bundle.ViewIncidenteTitle_hora}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewIncidenteLabel_fecha}"/>
                    <h:outputText value="#{incidenteController.selected.fecha}" title="#{bundle.ViewIncidenteTitle_fecha}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewIncidenteLabel_gravedad}"/>
                    <h:outputText value="#{incidenteController.selected.gravedad}" title="#{bundle.ViewIncidenteTitle_gravedad}"/>
                    <h:outputText value="#{bundle.ViewIncidenteLabel_numeroEstacionamiento}"/>
                    <h:outputText value="#{incidenteController.selected.numeroEstacionamiento}" title="#{bundle.ViewIncidenteTitle_numeroEstacionamiento}"/>
                    <h:outputText value="#{bundle.ViewIncidenteLabel_placa}"/>
                    <h:outputText value="#{incidenteController.selected.placa}" title="#{bundle.ViewIncidenteTitle_placa}"/>
                    <h:outputText value="#{bundle.ViewIncidenteLabel_vehiculo}"/>
                    <h:outputText value="#{incidenteController.selected.vehiculo}" title="#{bundle.ViewIncidenteTitle_vehiculo}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{incidenteController.destroyAndView}" value="#{bundle.ViewIncidenteDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewIncidenteEditLink}"/>
                <br />
                <h:commandLink action="#{incidenteController.prepareCreate}" value="#{bundle.ViewIncidenteCreateLink}" />
                <br />
                <h:commandLink action="#{incidenteController.prepareList}" value="#{bundle.ViewIncidenteShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewIncidenteIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
